<include file="Public:header" />
<div class="mainarea">
<div class="maininner">
<script language="javascript">
    function formtypeShow(value) {
        if (value == 'text') {
            $('tb_choice').style.display = 'none';
        } else {
            $('tb_choice').style.display = '';
        }
    }
</script>
	
		<form method="post" action="{:U("Module/doModify")}" id="form" enctype="multipart/form-data">
	
	<div class="body_content">
<div class="top_action"><a href="{:U("Module/index")}">浏览模块</a> | <a href="{:U("Module/install")}">安装模块</a></div>
		<table cellspacing="0" cellpadding="0" id="maintable" class="formtable">
		<tr>
		  <th style="width:12em;">中文标识</th>
		<td><input name="module_title" id="module_title" value="{$vo.module_title}"></td></tr>
		<tr><th>模块名称</th>
		<td>{$vo.module_name}</td>
		</tr>
          <tr>
            <th>内置权限</th>
            <td><input name="module_permission" type="text" id="module_permission" size="60" value="{$vo.module_permission}"/></td>
          </tr>
		<tr>
		  <th>开发者信息</th>
		  <td>{$vo.developer|strip_tags|default=' '}&nbsp;</td>
		  </tr>
       
		
		<tr>
		<th>排序</th>
		<td><input name="display_order" value="{$vo.display_order}" size="5" id="display_order"></td>
		</tr>
        <tr>
          <th style="width:100px">状态</th>
          <td><label>
            <select name="status" id="status">
              <option value="0" {$vo.status|selected=0}>启用</option>
              <option value="1" {$vo.status|selected=1}>禁用</option>
            </select>
          </label></td>
        </tr>
        <tr>
          <th style="width:100px">系统</th>
          <td><label>
            <select name="system_module" id="system_module">
              <option value="0" {$vo.system_module|selected=0}>一般</option>
              <option value="1" {$vo.system_module|selected=1}>系统</option>
            </select>
          </label></td>
        </tr>
        <tr>
          <th style="width:100px">&nbsp;</th>
          <td><input type="submit" name="submit" value="提交更新" class="submit" id="submit">
        <input type="reset" name="button" id="button" value="还原重填" class="submit"/>
	    <input name="id" type="hidden" id="id" value="{$vo.id}" />
	</td>
        </tr>
        <tr>
          <th style="width:100px">&nbsp;</th>
          <th>&nbsp;</th>
        </tr>
        <tr style="background:#F5FFF7">
          <th colspan="2">其它信息</th>
          </tr>
        <tr>
          <th style="width:100px">&nbsp;</th>
          <th>此模块包含文件及安装，卸载SQL</th>
        </tr>
        <tr>
            <td style="width:100px">包含文件</td>
            <td>1.控制器 ./AdminApp/Lib/Action/{$vo.module_name}Action.class.php<br />
2.模型 ./AdminApp/Lib/Action/{$vo.module_name}Model.class.php<br />
3.视图(模板) ./AdminApp/Tpl/{$vo.module_name}</td>
          </tr>
       <present name="installSql"> <tr>
          <td>表结构(安装)</td>
          <td ><div style="overflow-y:auto;height:100px;">{$installSql|nl2br}</div></td>
        </tr>
        </present>
       
        <present name="uninstallSql">
         <tr>
          <td>表结构(卸载)</td>
          <td><div style="overflow-y:auto;height:100px;">{$uninstallSql|nl2br}</div></td>
        </tr>
        </present>
		</tbody>
		
		</table>
	</div>
		
	<div class="foot_action" style="display:none">
			</div>
	
	</form>

</div>
</div>

<div class="side">
<include file="Public:sider" />
</div>
<include file="Public:footer" />